package com.yx.cloud.network.ble;

import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattService;

import com.yx.cloud.network.ble.Cmd;

import java.util.List;
import java.util.UUID;

public abstract class BleDataHandler {
    public abstract List packageData(Cmd command);
    public abstract boolean unPackageData(Cmd cmd, byte[] packData);
    public abstract boolean validateService(BluetoothGatt gatt);

    public UUID UUID_SERVICE;
    public UUID UUID_WRITE_CHARACTERISTIC;
    public UUID UUID_NOTIFY_CHARICTERISTICE ;

    protected volatile BluetoothGattService mTransportService;
    protected volatile BluetoothGattCharacteristic mWriteCharacteristic;
    protected volatile BluetoothGattCharacteristic mNotifyCharacteristic;
}
